package com.lagou.task11;

public class Manager {

    private String name;
    private int id;
    private double sarlary;
    private double bonus;

    public Manager() {
    }

    public Manager(String name, int id, double sarlary, double bonus) {
        this.name = name;
        this.id = id;
        this.sarlary = sarlary;
        this.bonus = bonus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getSarlary() {
        return sarlary;
    }

    public void setSarlary(double sarlary) {
        this.sarlary = sarlary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public void work() {
        System.out.println("工号为" +getId() + "基本工资为" + getSarlary() + "奖金为" + getBonus() + "的项目经理" + getName() + "正在努力的做着管理工作");
    }
}
